﻿package mortal.game.view.copy.QuestionCopy.item
{
    import com.mui.controls.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;
    import mortal.game.view.common.display.*;
    import mortal.game.view.common.item.*;

    public class QuestionCopyRender extends GSprite
    {
        public var cellSp:CellsGridSprite;
        protected var num1:BitmapNumberText;
        protected var num2:BitmapNumberText;
        protected var _sorce:GBitmap;
        protected var _div:GBitmap;

        public function QuestionCopyRender()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this.cellSp = UIFactory.getUICompoment(CellsGridSprite);
            this.cellSp.colNum = 3;
            this.cellSp.vCellWid = 43;
            this.cellSp.hCellWid = 100;
            this.cellSp.genCellFun = UIFactory.getUICompoment;
            this.cellSp.genCells(3, BaseItem);
            this.cellSp.x = 138;
            this.cellSp.y = 0;
            this.addChild(this.cellSp);
            this.num1 = UIFactory.bitmapNumberText(23, 8, "QuestionCopySorceNum.png", 19, 23, -9, this, 15, 1);
            this.num1.text = "100";
            this.num2 = UIFactory.bitmapNumberText(48, 8, "QuestionCopySorceNum.png", 19, 23, -9, this, 15, 0);
            this.num2.text = "3900";
            this._sorce = UIFactory.gBitmap(ImagesConst.QuestionSoreTitle, 91, 9, this);
            this._div = UIFactory.gBitmap(ImagesConst.QuestionCopyDiver, 39, 8, this);
            this.cellSp.genCells(3, BaseItem);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this.cellSp = null;
            this.num1 = null;
            this.num2 = null;
            this._sorce = null;
            this._div = null;
            return;
        }// end function

        public function updateScore(param1:int, param2:int) : void
        {
            this.num1.text = "" + param1;
            this.num2.text = "" + param2;
            return;
        }// end function

    }
}
